using System.IO;
using Lottery.Client.Services.Remote;

namespace Lottery.Client.SL
{
    public class LoginInfo
    {
        public string LoginIp;
        public string UserName;
        public string Password;
        public string Ver;
        public LoginInfo()
        {
            this.UserName = "";
            this.Password = "";
            this.Ver = "";
        }
        public byte[] GetBytes()
        {
            MemoryStream memoryStream = new MemoryStream();
            BinaryWriter binaryWriter = new BinaryWriter(memoryStream);
            // binaryWriter.Write(Encrypt.sEncrypt(this.UserName));
            binaryWriter.Write(this.UserName);
            binaryWriter.Write(this.Password);
            binaryWriter.Write(this.Ver);
            binaryWriter.Close();
            memoryStream.Close();
            return memoryStream.ToArray();
        }
    }
}